<template>
  <div class="about">
     我是共享的关于页面
     <button @click="toShare">跳转到共享页面</button>

    <div>formatCurrency: {{ formatCurrency(mock.amount) }}</div>
    <div>formatDate :{{ formatDate(mock.date) }}</div>
  </div>
</template>

<script setup>
import { formatCurrency, formatDate } from '@/utils/format'
import { useRouter  } from 'vue-router';
const router = useRouter();
const toShare = () => {
  router.push('/share')
}
const mock = {
  amount: 123456.78,
  date: new Date()
}
</script>
<style scoped>
.about {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  margin-top: 60px;
}
</style>